
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>B站弹幕机 JMeter 测试报告</title>
    <style>
        body { font-family: 'Microsoft YaHei', Arial, sans-serif; margin: 20px; background-color: #f5f5f5; }
        .container { max-width: 1200px; margin: 0 auto; background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        h1 { color: #333; text-align: center; border-bottom: 2px solid #007bff; padding-bottom: 10px; }
        h2 { color: #007bff; margin-top: 30px; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
        .stat-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 8px; text-align: center; }
        .stat-value { font-size: 24px; font-weight: bold; margin: 5px 0; }
        .stat-label { font-size: 14px; opacity: 0.9; }
        table { width: 100%; border-collapse: collapse; margin: 20px 0; }
        th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
        th { background-color: #f8f9fa; font-weight: bold; }
        tr:hover { background-color: #f5f5f5; }
        .success { color: #28a745; }
        .warning { color: #ffc107; }
        .danger { color: #dc3545; }
        .chart-container { margin: 20px 0; text-align: center; }
        .chart-container img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    </style>
</head>
<body>
    <div class="container">
        <h1>B站弹幕机 JMeter 测试报告</h1>
        
        <h2>测试信息</h2>
        <table>
            <tr><th>测试时间</th><td>2025-06-22 15:49:45</td></tr>
            <tr><th>数据记录数</th><td>530</td></tr>
        </table>
        
        <h2>基础统计</h2>
        <div class="stats-grid">
            <div class="stat-card">
                <div class="stat-value">530</div>
                <div class="stat-label">总请求数</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">0</div>
                <div class="stat-label">成功请求数</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">530</div>
                <div class="stat-label">失败请求数</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">0.0%</div>
                <div class="stat-label">成功率</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">0.0ms</div>
                <div class="stat-label">平均响应时间</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">54.5/s</div>
                <div class="stat-label">吞吐量</div>
            </div>
        </div>
        
        <h2>接口详细分析</h2>
        <table>
            <thead>
                <tr>
                    <th>接口名称</th>
                    <th>请求数量</th>
                    <th>成功数量</th>
                    <th>失败数量</th>
                    <th>成功率</th>
                    <th>平均响应时间</th>
                    <th>95%响应时间</th>
                </tr>
            </thead>
            <tbody>

                <tr>
                    <td>首页访问</td>
                    <td>10</td>
                    <td>0</td>
                    <td>10</td>
                    <td class="danger">0.0%</td>
                    <td>0.0ms</td>
                    <td>0.0ms</td>
                </tr>

                <tr>
                    <td>并发首页访问</td>
                    <td>500</td>
                    <td>0</td>
                    <td>500</td>
                    <td class="danger">0.0%</td>
                    <td>0.0ms</td>
                    <td>0.0ms</td>
                </tr>

                <tr>
                    <td>登录页面</td>
                    <td>10</td>
                    <td>0</td>
                    <td>10</td>
                    <td class="danger">0.0%</td>
                    <td>0.0ms</td>
                    <td>0.0ms</td>
                </tr>

                <tr>
                    <td>心跳检测</td>
                    <td>10</td>
                    <td>0</td>
                    <td>10</td>
                    <td class="danger">0.0%</td>
                    <td>0.0ms</td>
                    <td>0.0ms</td>
                </tr>

            </tbody>
        </table>
        
        <h2>分析图表</h2>
        <div class="chart-container">
            <img src="simple_analysis.png" alt="简单分析图表">
        </div>
    </div>
</body>
</html>
